public class Student {
    public void student(){
        System.out.println("1.执行student类的无参构造方法创建Studentd对象");
    }
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        System.out.println("2.执行setter方法设置对象属性");
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private Integer number;
    private String  name;

    private void init() {
        System.out.println("4.执行bean对象的初始化方法");
    }

    private void destroy() {
        System.out.println("7.执行bean对象的销毁方法");
    }
}
